<template>
    <div class="flex gap-2">
        <el-tag type="success" v-for="tag in tags" @click="goToIndustry(tag)" :key="tag">{{ tag }}</el-tag>
    </div>
</template>

<script>
import { openNewTableIndustry } from '../router'

export default {
    props: {
        tags: String
    },
    setup(prop) {
        const goToIndustry = (tag) => {
            openNewTableIndustry(tag)
        }
        return {
            goToIndustry
        }
    }
}
</script>